Visual Basic (Declaration) | |
---|---|
Public Overridable Sub AddRange( _ ByVal collection As ICollection(Of T) _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual void AddRange( ICollection<T> collection ) |
Managed Extensions for C++ | |
---|---|
public: virtual void AddRange( ICollection<T>* collection ) |
C++/CLI | |
---|---|
public: virtual void AddRange( ICollection<T>^ collection ) |
Parameters
- collection
- The ICollection whose elements should be added to the end of the collection.
For an example, refer to Generic RasterCollection.
The collection itself cannot be a null reference (Nothing in Visual Basic), but it can contain
elements that are a null reference (Nothing).
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family